﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <textarea style="width: 90%; margin: 0 auto" id="projectComment" name="comment" placeholder="请输入内容" class="layui-textarea"></textarea>
</body>

<script data-th-inline="javascript">
    layui.use(['jquery', 'febs', 'form', 'validate'], function () {
        let $ = layui.jquery,
            project = [[${project}]];
        console.log(project);

        let textarea = document.getElementById('projectComment');
        textarea.value = project.comment;
    });
</script>
</html>